package com.example.finaltest.shoppingCart;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.finaltest.R;

public class EmptyShoppingCartActivity extends AppCompatActivity {
    ImageView back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_empty_shopping_cart);
        initView();
        setListener();
    }

    private void setListener() {
        back.setOnClickListener(listener);
    }
    View.OnClickListener listener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            switch (view.getId()) {
                case R.id.shopping_back:
                    finish();
                    break;
            }
        }
    };

    private void initView() {
        back = findViewById(R.id.shopping_back);
    }
}